package cn.caijiapeng.spt.bean;

import com.jfinal.kit.Kv;

public class Query {
	private Kv cond;
	private Integer limit;
	private String columns;
	private String orderBy;
	
	
	
	public Query() {
		super();
	}
	public Query(Kv cond) {
		super();
		this.cond = cond;
	}
	
	public Query(String orderBy) {
		super();
		this.orderBy = orderBy;
	}
	
	public Query(Kv cond, Integer limit, String columns, String orderBy) {
		super();
		this.cond = cond;
		this.limit = limit;
		this.columns = columns;
		this.orderBy = orderBy;
	}
	
	
	public Kv getCond() {
		return cond;
	}
	public Query setCond(Kv cond) {
		this.cond = cond;
		return this;
	}
	public Integer getLimit() {
		return limit;
	}
	public Query setLimit(Integer limit) {
		this.limit = limit;
		return this;
	}
	public String getColumns() {
		return columns;
	}
	public Query setColumns(String columns) {
		this.columns = columns;
		return this;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public Query setOrderBy(String orderBy) {
		this.orderBy = orderBy;
		return this;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("QueryList [cond=");
		builder.append(cond);
		builder.append(", limit=");
		builder.append(limit);
		builder.append(", columns=");
		builder.append(columns);
		builder.append(", orderBy=");
		builder.append(orderBy);
		builder.append("]");
		return builder.toString();
	}
	
}
